<%@ page pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.base.DatabaseObject"%>
<%@page import="java.math.BigDecimal"%>
<%@page import="com.base.Config"%>
<%@include file="inc-header.jsp"%>
<%@page import="com.base.Constant"%>
<div class="main">
	<div class="item mag0">
		<%@include file="inc-menu.jsp"%>

		<div class="item">
			<div class="bg_gray2">
				<span class="s18 cl006fbc block"><strong class="prod-new">Sản
						phẩm mới nhất</strong> </span>
			</div>

			<div class="list-game">
				<ul class="list_style">
					<li>
						<table width="100%" cellspacing="0" cellpadding="0" border="0">
							<%
								String catGameParentId2 = Config.getStringProperty(
										"CAT_GAMEONLINE_PARENT_ID", "3627", false);
								if (!StringTool.isEmptyOrNul(catGameParentId2)) {
									ArrayList<DatabaseObject> gameList2 = contentDAO
											.getParentGameOnline(new BigDecimal(catGameParentId2),
													1, 6);
									if (gameList2 != null && !gameList2.isEmpty()) {
							%>
							<%
								for (DatabaseObject game : gameList2) {
							%>
							<tr>
								<td width="85">
									<a class="data_link" title="" href="/ca-nhan/mobrunner-t1d180"><img
											class="img-80-80"
											src="<%=imagePath
								+ game.getAttribute().get("avatar_image")%>"
											alt="<%=game.getAttribute().get("name")%>"> </a>
								</td>
								<td class="info-data" valign="top">
									<a class="data_link" title="" href=""><%=game.getAttribute().get("name")%></a>
									<p>
										<%
											String stronline = game.getAttribute().get(
																"description").toString();
														String[] partonl = stronline.split("\\.");
										%><%=partonl[0]%>...
									</p>
									<p>
										<strong><span class="cl999">Chia sẻ:</span>50%</strong>
									</p>
									<p>
										<a title="" href="/ca-nhan/mobrunner-t1d180"
											class="ic-money clf60"><strong>Kinh doanh ngay</strong> </a>
									</p>
								</td>
							</tr>
							<%
								}
									}
								}
							%>
						</table>
					</li>
				</ul>
			</div>
		</div>
		<%
			if (session.getAttribute(Constant.ADMIN_LOGIN) == null) {

		%>
		<div class="item">
			<div class="bg_gray2">
				<img src="images/secrecy-icon.png">
				<span class="s18 cl006fbc block">Đăng nhập </span>
			</div>
			<div class="form-login pad10">
				<p class="clf60 s14">
					<strong></strong>
				</p>
				<form method="POST" action="login_result.jsp">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td>
									<input name="username" value="Tài khoản"
										onfocus="if(this.value=='Tài khoản') this.value='';"
										type="text">
								</td>
							</tr>
							<tr>
								<td>
									<input name="password" value="Mật khẩu"
										onfocus="if(this.value=='Mật khẩu') this.value='';"
										type="password">
								</td>
							</tr>
							<tr>
								<td>
									<span class="reme_pas"><input name="remember" value="1"
											type="checkbox"><a class="cl666" href="#">Ghi nhớ
											mật khẩu</a> </span>&nbsp;|&nbsp;
									<span class="forgot_pas"><a class="clf60"
										href="quenmk.jsp">Quên mật khẩu</a> </span>
								</td>
							</tr>
							<tr>
								<td class="pad-t20">
									<div class="img-orage fl clearfix">
										<input value="Đăng nhập" class="r-img-orage" type="submit">
									</div>
									<span class="btn-regis fl"><a href="f_register.jsp">Đăng
											ký</a> </span>
								</td>
							</tr>
							<tr>
								<td class="pad-t10">
									<a target="_blank"
										href="http://diendan.taoviec.com/threads/gi%E1%BB%9Bi-thi%E1%BB%87u-v%E1%BB%81-taoviec-com.14/"
										class="ic-ques">Thông tin hữu ích cho người mới tham gia
										Taoviec</a>
								</td>
							</tr>
						</tbody>
					</table>
				</form>
			</div>
			<% } %>
			<%@include file="inc-footter.jsp"%>